
.security-container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
}

.security-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 1.5rem 2rem;
}

.card-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.password-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.styled-input {
    width: 90%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.styled-input:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.2);
    outline: none;
}

.password-strength {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    gap: 0.5rem;
}

.strength-bar {
    height: 4px;
    flex: 1;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar span {
    display: block;
    height: 100%;
    width: 0;
    transition: all 0.3s;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-submit {
    background: #2ecc71;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}
.btn-cancel {
    background-color: #dc3545;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 15px; /* 与提交按钮间距 */
}

.btn-cancel:hover {
    background-color: #c82333;
}

.btn-cancel i {
    margin-right: 8px;
}
